package com.hakim.wfb.customer.result.trans;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hkfs.fundamental.api.data.DataObjectBase;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Administrator on 2017/7/15.
 */
public class WithdrawRecordView extends DataObjectBase {

    private static final long serialVersionUID = 1L;

    /**
     * 主键uuid
     */
    private String tid;

    private String wrOrderno;
    /**
     * 地址类型名称
     */
    private String wrType;
    /**
     * 积分类型
     */
    private Integer wrPointType;
    /**
     * 提现数量
     */
    private BigDecimal wrPoint;
    /**
     * 复消数量
     */
    private BigDecimal wrReusablePoint;
    /**
     * 公益数量
     */
    private BigDecimal wrWalfarePoint;
    /**
     * 手续费
     */
    private BigDecimal wrChargePoint;
    /**
     * 提现币种比例
     */
    private BigDecimal wrCurrencyRate;
    /**
     * 提现币数量
     */
    private BigDecimal wrCurrencyPoint;
    /**
     * 提现地址
     */
    private String wrAddr;
    /**
     * 提现时间
     */
    private Date wrDate;
    /**
     * 提现用户
     */
    private String wrUser;

    private String wrPointTypeStr;

    public String getTid() {
        return this.tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getWrOrderno() {
        return this.wrOrderno;
    }

    public void setWrOrderno(String wrOrderno) {
        this.wrOrderno = wrOrderno;
    }

    public Integer getWrPointType() {
        return this.wrPointType;
    }

    public void setWrPointType(Integer wrPointType) {
        this.wrPointType = wrPointType;
    }

    public void setWrType(String wrType) {
        this.wrType = wrType;
    }

    public String getWrType() {
        return this.wrType;
    }

    public BigDecimal getWrPoint() {
        return this.wrPoint;
    }

    public void setWrPoint(BigDecimal wrPoint) {
        this.wrPoint = wrPoint;
    }

    public BigDecimal getWrReusablePoint() {
        return this.wrReusablePoint;
    }

    public void setWrReusablePoint(BigDecimal wrReusablePoint) {
        this.wrReusablePoint = wrReusablePoint;
    }

    public BigDecimal getWrWalfarePoint() {
        return this.wrWalfarePoint;
    }

    public void setWrWalfarePoint(BigDecimal wrWalfarePoint) {
        this.wrWalfarePoint = wrWalfarePoint;
    }

    public BigDecimal getWrChargePoint() {
        return this.wrChargePoint;
    }

    public void setWrChargePoint(BigDecimal wrChargePoint) {
        this.wrChargePoint = wrChargePoint;
    }

    public BigDecimal getWrCurrencyRate() {
        return this.wrCurrencyRate;
    }

    public void setWrCurrencyRate(BigDecimal wrCurrencyRate) {
        this.wrCurrencyRate = wrCurrencyRate;
    }

    public BigDecimal getWrCurrencyPoint() {
        return this.wrCurrencyPoint;
    }

    public void setWrCurrencyPoint(BigDecimal wrCurrencyPoint) {
        this.wrCurrencyPoint = wrCurrencyPoint;
    }

    public String getWrAddr() {
        return this.wrAddr;
    }

    public void setWrAddr(String wrAddr) {
        this.wrAddr = wrAddr;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getWrDate() {
        return this.wrDate;
    }

    public void setWrDate(Date wrDate) {
        this.wrDate = wrDate;
    }

    public String getWrUser() {
        return this.wrUser;
    }

    public void setWrUser(String wrUser) {
        this.wrUser = wrUser;
    }

    public String getWrPointTypeStr() {
        return wrPointTypeStr;
    }

    public void setWrPointTypeStr(String wrPointTypeStr) {
        if (this.wrPointType == 4)
            this.wrPointTypeStr = "原始积分";
        else if (this.wrPointType == 5)
            this.wrPointTypeStr = "复投积分";
        else if (this.wrPointType == 10)
            this.wrPointTypeStr = "静态积分";
        else if (this.wrPointType == 11)
            this.wrPointTypeStr = "动态积分";
    }
}
